<?php
/**
 * @author		João Batista Neto
 * @package		rpo
 * @subpackage	http\exception
 * @category	Http
 * @license		http://opensource.org/licenses/gpl-license.php GNU Public License
 */
namespace rpo\http\exception;

use rpo\http\exception\interfaces\AbstractClientException;
use \Exception;

/**
 *  The resource identified by the request is only capable of generating response entities which have content
 *  characteristics not acceptable according to the accept headers sent in the request.
 *  <p>
 *  Unless it was a HEAD request, the response SHOULD include an entity containing a list of available entity
 *  characteristics and location(s) from which the user or user agent can choose the one most appropriate.
 *  The entity format is specified by the media type given in the Content-Type header field. Depending upon the
 *  format and the capabilities of the user agent, selection of the most appropriate choice MAY be performed
 *  automatically.
 *  </p>
 * @author		João Batista Neto
 * @final
 * @package		rpo
 * @subpackage	http\exception
 * @category	Http
 * @license		http://opensource.org/licenses/gpl-license.php GNU Public License
 */
final class NotAcceptableException extends AbstractClientException {
	/**
	 * Constroi o objeto da exceção
	 * @param string $message A exceção
	 * @param Exception $parent
	 */
	public function __construct( $message , Exception $previous = null ){
		parent::__construct( $message , 406 , $previous );
	}
}